from selenium.webdriver.common.by import By

from page.base_page import BasePage
# from page.register import Register


class Login(BasePage):

    def scan(self):
        pass

    def Login(self):
        self.find(By.LINK_TEXT, "账户登录").click()
        self.find(By.ID, 'loginname').send_keys('1111111111')
        self.find(By.ID, 'nloginpwd').send_keys('123456')
        return True

    def goto_register(self):
        self.driver.get("https://bpm.geelycv-test.com/wui/index.html#/main/workflow/add?menuIds=1,12&menuPathIds=1,12&_key=g4xp1x")
        return Register(self._driver)
